package com.deluxelx.rmo.user.service.rpc;

import com.deluxelx.rmo.user.mapper.UserSentimentMapper;
import com.deluxelx.rmo.user.api.dto.UserSentimentDto;
import com.deluxelx.rmo.user.api.rpc.UserSentimentService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@DubboService
public class UserSentimentServiceImpl implements UserSentimentService {

    @Resource
    private UserSentimentMapper userSentimentMapper;

    @Override
    public UserSentimentDto getUserSentiment(Long userId) {
        return userSentimentMapper.queryUserSentimentByUserId(userId);
    }

}
